for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
// ArrayIndexOutOfBoundsException.js
"use strict";
// :: DEPENDENCIES
// load native dependencies
const path = require("path");
// load local dependencies
const IndexOutOfBoundsException = require(path.join(__dirname, "IndexOutOfBoundsException.js"));
// :: BASIC SETUP
/**
* Thrown to indicate that an array has been accessed with an illegal index. The index is either negative or greater
* than or equal to the size of the array.
* @param {String} message - The message describing the <tt>ArrayIndexOutOfBoundsException</tt>.
* @param {Number} code - The unique code that identifies the cause of the <tt>ArrayIndexOutOfBoundsException</tt>.
* @augments IndexOutOfBoundsException
* @constructor
* @see https://docs.oracle.com/javase/8/docs/api/java/lang/ArrayIndexOutOfBoundsException.html
*/
const ArrayIndexOutOfBoundsException = function (message, code) {
IndexOutOfBoundsException.call(this, message, code);
};
// :: INHERITANCE
// set the IndexOutOfBoundsException 'class' as the parent in the prototype chain
ArrayIndexOutOfBoundsException.prototype = Object.create(IndexOutOfBoundsException.prototype);
ArrayIndexOutOfBoundsException.prototype.constructor = IndexOutOfBoundsException;
// :: PROTOTYPE
* The name used to identify a <tt>ArrayIndexOutOfBoundsException</tt>.
* @type {String}
* @default
ArrayIndexOutOfBoundsException.prototype.name = "ArrayIndexOutOfBoundsException";
// :: EXPORT
// export the ArrayIndexOutOfBoundsException 'class'
module.exports = ArrayIndexOutOfBoundsException;